package com.wxx.design.abstractfactory;

/**
 * @author: Jetwang
 * @date: 2022/4/9 21:23
 * @description: Test
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        Video video = courseFactory.getVideo();
        Article article = courseFactory.getArticle();
        video.produce();
        article.produce();

        CourseFactoryPlus courseFactoryPlus = new VueCourseFactory();
        Audio audio = courseFactoryPlus.getAudio();
        Article article01 = courseFactoryPlus.getArticle();
        Video video01 = courseFactoryPlus.getVideo();
        audio.produce();
        article01.produce();
        video01.produce();

        CourseFactoryPlus courseFactoryPlus01 = new JavaCourseFactoryPlus();
        Audio audio02 = courseFactoryPlus01.getAudio();
        audio02.produce();

    }
}
